<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'print_table01.jsp' starting page</title>
  </head>
  
  <body>
    This is my JSP page. <br>
    <%
        int rows = 10;
        int cols = 10;
        out.println("<table border=\"1\" width=\"100%\">");
        for(int i=0;i<rows;i++){
            out.println("<tr>");
            for(int j=0;j<cols;j++){
            out.println("<td>"+(i*j)+"</td>");
            }
            out.println("</tr>");
        }
        out.println("</table>");
    %>
  </body>
</html>
